package com.blue.po.author;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 用户表
 *
 * @author cnj
 * @email 15696471158@163.com
 * @date 2024-03-17
 */
@Data
@TableName("author_user")
public class UserPO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId
    @Schema(description = "用户ID")
    private String userId;

    @Schema(description = "部门ID")
    private String deptId;

    @Schema(description = "用户编号")
    private String userNo;

    @Schema(description = "用户名称")
    private String username;

    @Schema(description = "登录密码")
    private String password;

    @Schema(description = "手机号码")
    private String phone;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "头像")
    private String headPic;

    @Schema(description = "性别(0-男,1-女)")
    private String gender;

    @Schema(description = "状态(0-正常,1-禁用)")
    private String status;

    @Schema(description = "直属上级领导ID")
    private String leaderId;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建者ID")
    private String creatorId;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private String createTime;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "最近更新者ID")
    private String updaterId;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "最近更新时间")
    private String updateTime;


}
